package com.example.zzh.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.zzh.entity.ZzhDepotHead;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.zzh.entity.ZzhOrder;
import com.example.zzh.entity.ZzhStaff;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.HashMap;

/**
 * <p>
 * 单据主表 Mapper 接口
 * </p>
 *
 * @author zzh
 * @since 2023-08-21
 */
@Mapper
public interface ZzhDepotHeadMapper extends BaseMapper<ZzhDepotHead> {
    IPage pageName(Page<ZzhOrder> page);

    IPage pageNames(Page<ZzhOrder> page,@Param(Constants.WRAPPER) Wrapper wrapper);

    Long saveDepotHead(ZzhDepotHead zzhDepotHead);

    Long selectId(String number);

    IPage pageNumber(Page<ZzhOrder> page,@Param("paramMap") HashMap<String, Object> paramMap);

    ZzhDepotHead selectDepotHead(String linkNumber);

    Integer selectNumber(String start, String end, String subType);

    Integer selectMoney(String start, String end, String subType);
}
